/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * RegistroCliente.java
 *
 * Created on 23/05/2011, 02:24:30 PM
 */

package GUI;

import Interfaz.Interfaz;
import java.util.Date;
import javax.swing.ImageIcon;

/**
 *
 * @author Vane
 */
public class RegistroCliente extends javax.swing.JFrame {

    /** Creates new form RegistroCliente */
	private Interfaz laInterfaz;
    public RegistroCliente(Interfaz laInterfaz) {
        this.laInterfaz=laInterfaz;
		initComponents();
		this.setLocationRelativeTo(null); // Cambiar icono de java en ventana
        this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTNombre = new javax.swing.JTextField();
        jTApellido = new javax.swing.JTextField();
        jTRIFCI = new javax.swing.JTextField();
        jTTelefono = new javax.swing.JTextField();
        jTEmail = new javax.swing.JTextField();
        jTDireccion = new javax.swing.JTextField();
        jBActualizar = new javax.swing.JButton();
        jBContinuar = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jTLogin = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jPassword = new javax.swing.JPasswordField();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(400, 560));
        setResizable(false);
        getContentPane().setLayout(null);

        jLabel1.setText("Nombre:");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(30, 180, 80, 14);

        jLabel2.setText("Apellido:");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(30, 210, 80, 14);

        jLabel3.setText("RIF/CI:");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(30, 240, 80, 14);

        jLabel4.setText("Teléfono:");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(30, 330, 80, 14);

        jLabel5.setText("E-mail:");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(30, 360, 80, 14);

        jLabel6.setText("Dirección:");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(30, 390, 70, 14);

        jTNombre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTNombreActionPerformed(evt);
            }
        });
        getContentPane().add(jTNombre);
        jTNombre.setBounds(120, 180, 190, 20);

        jTApellido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTApellidoActionPerformed(evt);
            }
        });
        getContentPane().add(jTApellido);
        jTApellido.setBounds(120, 210, 190, 20);

        jTRIFCI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTRIFCIActionPerformed(evt);
            }
        });
        getContentPane().add(jTRIFCI);
        jTRIFCI.setBounds(120, 240, 190, 20);
        getContentPane().add(jTTelefono);
        jTTelefono.setBounds(120, 330, 190, 20);

        jTEmail.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTEmailActionPerformed(evt);
            }
        });
        getContentPane().add(jTEmail);
        jTEmail.setBounds(120, 360, 190, 20);
        getContentPane().add(jTDireccion);
        jTDireccion.setBounds(120, 390, 190, 20);

        jBActualizar.setText("Actualizar");
        jBActualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBActualizarActionPerformed(evt);
            }
        });
        getContentPane().add(jBActualizar);
        jBActualizar.setBounds(120, 420, 100, 40);

        jBContinuar.setText("Continuar");
        jBContinuar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBContinuarActionPerformed(evt);
            }
        });
        getContentPane().add(jBContinuar);
        jBContinuar.setBounds(230, 420, 90, 40);

        jLabel7.setFont(new java.awt.Font("Tempus Sans ITC", 3, 15));
        jLabel7.setText("Registro Cliente Online");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(120, 40, 220, 20);

        jLabel8.setText("Sexo:");
        getContentPane().add(jLabel8);
        jLabel8.setBounds(30, 270, 70, 14);

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Femenino", "Masculino" }));
        getContentPane().add(jComboBox1);
        jComboBox1.setBounds(120, 270, 190, 20);

        jLabel9.setText("Fecha Nac:");
        getContentPane().add(jLabel9);
        jLabel9.setBounds(30, 300, 80, 14);

        jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/marketplus.png"))); // NOI18N
        getContentPane().add(jLabel10);
        jLabel10.setBounds(10, 0, 94, 80);

        jLabel11.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel11.setText("RIF: J-122231245          Desarrollado por: Group Delivery");
        getContentPane().add(jLabel11);
        jLabel11.setBounds(80, 470, 320, 20);

        jLabel12.setText("Password:");
        getContentPane().add(jLabel12);
        jLabel12.setBounds(30, 150, 90, 14);
        getContentPane().add(jTLogin);
        jTLogin.setBounds(120, 120, 190, 20);

        jLabel13.setText("Login:");
        getContentPane().add(jLabel13);
        jLabel13.setBounds(30, 120, 60, 14);
        getContentPane().add(jPassword);
        jPassword.setBounds(120, 150, 190, 20);
        getContentPane().add(jDateChooser1);
        jDateChooser1.setBounds(120, 300, 190, 20);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jTNombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTNombreActionPerformed
		// TODO add your handling code here:
}//GEN-LAST:event_jTNombreActionPerformed

	private void jTApellidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTApellidoActionPerformed
		// TODO add your handling code here:
}//GEN-LAST:event_jTApellidoActionPerformed

	private void jTRIFCIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTRIFCIActionPerformed
		// TODO add your handling code here:
}//GEN-LAST:event_jTRIFCIActionPerformed

	private void jTEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTEmailActionPerformed
		// TODO add your handling code here:
}//GEN-LAST:event_jTEmailActionPerformed

	private void jBContinuarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBContinuarActionPerformed
		// TODO add your handling code here:
		
		CompraOnline iraCompraOnline=new CompraOnline(laInterfaz);
		iraCompraOnline.setVisible(true);
		this.dispose();

		
}//GEN-LAST:event_jBContinuarActionPerformed

	private void jBActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBActualizarActionPerformed
		// TODO add your handling code here:
		
	}//GEN-LAST:event_jBActualizarActionPerformed

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBActualizar;
    private javax.swing.JButton jBContinuar;
    private javax.swing.JComboBox jComboBox1;
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPasswordField jPassword;
    private javax.swing.JTextField jTApellido;
    private javax.swing.JTextField jTDireccion;
    private javax.swing.JTextField jTEmail;
    private javax.swing.JTextField jTLogin;
    private javax.swing.JTextField jTNombre;
    private javax.swing.JTextField jTRIFCI;
    private javax.swing.JTextField jTTelefono;
    // End of variables declaration//GEN-END:variables

}
